package com.springboot.mail.modules.email.service;


import com.springboot.mail.common.bean.MyResult;
import com.springboot.mail.modules.email.domain.vo.EmailVO;

/**
 * @Description
 * @Author LY L
 * @Date 2024-10-23
 */
public interface EmailService {

    MyResult<String> sendAttachmentsMail(EmailVO emailVO);

    MyResult<String> editEmail(String oldEmail, String oldCode, String newEmail, String newCode);

    boolean isEmailCode(String email);

    String selectEmailCode(String email);

    MyResult<String> getEmailCode(String email);

    MyResult<Boolean> checkEmail(String email, String code);

}
